//
//  myTableViewCell.m
//  HGY
//
//  Created by lanou3g on 15/11/3.
//  Copyright © 2015年 顾成辉. All rights reserved.
//

#import "myTableViewCell.h"

@implementation myTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addView];
    }
    return self;
}

- (void)addView
{

    self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(10 * kWidth, 10 * kHeight, 150 * kWidth, 110 * kHeight)];
    [self addSubview:self.imageV];
   // self.imageV.backgroundColor = [UIColor redColor];
    
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV.right + 50 * kWidth, 20 * kHeight, 150 * kWidth, 30 * kHeight)];
    [self addSubview:self.titleLabel];
   // self.titleLabel.backgroundColor = [UIColor greenColor];
    
    self.cityLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.imageV.right + 50 * kWidth, self.titleLabel.bottom + 30 * kHeight, 150 * kWidth, kHeight * 30)];
    [self addSubview:self.cityLabel];
    
//self.cityLabel.backgroundColor = [UIColor grayColor];
    
}

@end
